package com.huangbc.internalcommon.dto;

import lombok.Data;

import java.util.List;

/**
 * @Author:Derek.huang on 2024/8/19 13:42
 */
@Data
public class TrackResult {

    private List<TrackResultArray> tracks;
    private String counts;

    class TrackResultArray {
        /**
         *  "{\"errcode\":10000,\"errmsg\":\"OK\",\"data\":\n" +
         * "{\"tracks\":[{\"startPoint\":{\"location\":\"104.054488,30.577875\",\"locatetime\":1724030846109},\n" +
         * "\"endPoint\":{\"location\":\"104.054488,30.577875\",\"locatetime\":1724030846109},\"trid\":379,\"distance\":0,\"time\":0,\"counts\":1,\n" +
         * "\"points\":[{\"location\":\"104.054488,30.577875\",\"locatetime\":1724030846109,\"speed\":255.0,\"direction\":511.0,\"accuracy\":550.0}]}],\n" +
         * "\"counts\":1}
         */
        private StartOrEndPoint startPoint;
        private StartOrEndPoint endPoint;
        private String trid;
        private String distance;
        private String time;
        private String counts;
        private List<PointsList> points;
    }

    @Data
    class StartOrEndPoint {
        private String location;
        private String locatetime;
    }

    @Data
    class PointsList {
        private String location;
        private String locatetime;
        private String speed;
        private String direction;
        private String accuracy;
    }
}

